#-*-encoding=utf-8-*-
steps = [
    FlowStep(
        name=u'init',
        title=u'申请',
        fields=[u'birthDate', u'age', u'nation', u'politicalBackground', u'education', u'phone', u'eMail', u'addrss', u'name'],
        responsibles=u'sheet is None and [request.principal.id] or sheet["creators"]',
    actions=[
        FlowStepAction(
            name=u'submit',
            title=u'提交',
            nextsteps=[u'review'],
            finish_condition=u''
)
])
,

    FlowStep(
        name=u'review',
        title=u'审核',
        fields=[u'birthDate', u'age', u'nation', u'politicalBackground', u'education', u'phone', u'eMail', u'addrss', u'name'],
        responsibles=u'flowsettings["reviewer"]',
    actions=[
        FlowStepAction(
            name=u'accept',
            title=u'通过',
            nextsteps=[u'283831']
),

        FlowStepAction(
            name=u'reject',
            title=u'打回',
            nextsteps=[u'init'],
            finish_condition=u''
)
])
,

    FlowStep(
        name=u'283831',
        title=u'信息系统帐号开设',
        fields=[u'name', u'birthDate', u'age', u'nation', u'politicalBackground', u'education', u'phone', u'eMail', u'addrss'],
        responsibles=u"flowsettings['system_admin']",
    actions=[
        FlowStepAction(
            name=u'603760',
            title=u'帐号开设成功',
            nextsteps=[]
),

        FlowStepAction(
            name=u'612498',
            title=u'帐号开设失败',
            nextsteps=[u'init']
)
])
]